﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GUI.Controls
{
	public class TpToolTip : ToolTip
	{
		#region Construction

		public TpToolTip()
			: base()
		{
		}
		#endregion

		#region Delegates

		private delegate void SetToolTipDelegate(Control c, string caption);
		public new void SetToolTip(Control control, string caption)
		{
			if (control.InvokeRequired)
			{
				control.Invoke(new SetToolTipDelegate(SetToolTip), new object[] { control, caption });
			}
			else
			{
				base.SetToolTip(control, caption);
			}
		}

		#endregion
	}
}
